import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const state = {
  back:1,
  selectParams:'',
  filter:1,
  filter1:1,
  routerName: 'Home',
  transtion:''
};
const getters = {
    getRouterName(state){
        return state.routerName;
    },
    getTranstion(state){
        return state.transtion;
    }
}
const mutations = {
 setRouterName(state,name){
    state.routerName = name
 },
 setTranstion(state,name){
     state.transtion = name
 }
};
const store = new Vuex.Store({
  state,
  getters,
  mutations
});

export default store;
